import pyautogui
import time
import random
def main():
    # 设置安全选项
    pyautogui.FAILSAFE = True
    pyautogui.PAUSE = 0.5
    
    print("1秒后开始执行...")
    time.sleep(1)
    
    try:
        time.sleep(2.36)
        pyautogui.moveTo(874, 559,2)
        pyautogui.click(874, 559)
        time.sleep(0.70)                        
        for _ in range(15):
            time.sleep(0.2 *random.random())
            pyautogui.press('backspace')
        pyautogui.write("1PX0KP4Z11T0")    
        time.sleep(0.2 *random.random())
        pyautogui.press("enter")
        pyautogui.click(1442, 564)
        time.sleep(3.02)
        pyautogui.click(864, 1084)
        time.sleep(2.03)
        pyautogui.click(564, 1566)
        time.sleep(8.30)
        pyautogui.click(578, 711)
        time.sleep(0.92) 
        pyautogui.write("gxd")
        time.sleep(0.89)
        pyautogui.click(1148, 716)
        time.sleep(1.23)
        pyautogui.write("19.88")
        time.sleep(1.91)
        pyautogui.click(668, 1146)
        time.sleep(0.65)
        pyautogui.write("1")
        time.sleep(2.28)
        pyautogui.click(1539, 1132)
        time.sleep(1.28)
        pyautogui.click(1386, 1224)
        time.sleep(2.31)
        pyautogui.click(628, 1279)
        time.sleep(0.22)
        pyautogui.write("2")
        pyautogui.write("3")
        time.sleep(0.13)
        pyautogui.write("4")
        time.sleep(2.30)
        pyautogui.write("5")
        time.sleep(0.20)
        pyautogui.write("6")
        time.sleep(0.22)
        pyautogui.write("7")
        time.sleep(3.62)
        pyautogui.click(2359, 1508)
        time.sleep(7.14)
        pyautogui.click(1515, 1210)
        time.sleep(2.79)
        pyautogui.click(1247, 37)
        time.sleep(2.94)
        pyautogui.click(569, 1580)

    except Exception as e:
        print(f"执行错误: {e}")

if __name__ == "__main__":
    main()
